import { defineMock } from './base';

export default defineMock([
  {
    url: '/api/dashboard/stats',
    method: ['GET'],
    body: {
      code: 0,
      data: {
        userCount: 128,
        todayVisit: 56,
        systemDays: 365,
        todoCount: 7
      }
    }
  },
  {
    url: '/api/dashboard/visit-trend',
    method: ['GET'],
    body: {
      code: 0,
      data: {
        dates: ['07-25', '07-26', '07-27', '07-28', '07-29', '07-30', '07-31'],
        counts: [12, 23, 34, 45, 56, 67, 78]
      }
    }
  },
  {
    url: '/api/dashboard/notices',
    method: ['GET'],
    body: {
      code: 0,
      data: [
        { date: '2025-07-31', content: '系统上线' },
        { date: '2025-07-30', content: '新增字典自动刷新功能' }
      ]
    }
  }
])